package com.dwei;

public class Global {
	//static
	public static String CONF_ROOT = "myconfiguration";
	public static String CONF_COMMON = "common";
	public static String CONF_ENTITIES = "entities";
	
	public static String COMMON_ENCODING = "encoding";
	public static String COMMON_SOURCE = "source";
	public static String COMMON_ENTITY = "entity";
	public static String COMMON_DAO = "dao";
	public static String COMMON_SERVICE = "service";
	public static String COMMON_SERVICE_IMP = "serviceImp";
	public static String COMMON_MAPPER = "mapper";
	public static String COMMON_INJECTION = "injection";
	
	public static String ENTITY = "entity";
	
	public static String ENTITY_NAME = "name";
	public static String ENTITY_TABLE = "table";
	public static String ENTITY_KEY = "key";
	public static String ENTITY_INSERT = "insert";
	public static String ENTITY_UPDATE = "update";
	public static String ENTITY_DELETE = "delete";
	public static String ENTITY_PROP = "prop";
	
	public static String PROP_PROPERTY = "property";
	public static String PROP_JAVATYPE = "javaType";
	public static String PROP_COLUMN = "column";
	public static String PROP_JDBCTYPE = "jdbcType";
	public static String PROP_JAVADOC = "javadoc";
	//variable
	public static String SQL_CREATE_TABLE = "CREATE TABLE ";
	public static String SQL_L_BRACKET = "(";
	public static String SQL_R_BRACKET = ")";
	public static String SQL_SEPARATOR = ";";
	public static String TABLE_NAME_SEPARATOR = "_";
	public static int TABLE_NAME_PRE_UNUSE = 1;
	public static int TABLE_NAME_SUF_UNUSE = 0;
	public static String TABLE_COLUMN_SEPARATOR = "_";
	public static int TABLE_COLUMN_PRE_UNUSE = 0;
	public static int TABLE_COLUMN_SUF_UNUSE = 0;
	
	public static String COMMON_PROJECT_NAME = "Sample";
	public static String COMMON_ENCODING_DEFAULT = "UTF-8";
	public static String COMMON_SOURCE_DEFAULT = "E:/privspace/javaspace/Sample/src";
	public static String COMMON_ENTITY_DEFAULT = "com.dwei.entity";
	public static String COMMON_DAO_DEFAULT = "com.dwei.dao";
	public static String COMMON_SERVICE_DEFAULT = "com.dwei.service";
	public static String COMMON_SERVICE_IMP_DEFAULT = "com.dwei.service.imp";
	public static String COMMON_MAPPER_DEFAULT = "conf.mybatis";
	public static String COMMON_INJECTION_DEFAULT = "conf.spring";
	
	public static String BOOLEAN_TRUE = "true";
	public static String BOOLEAN_FALSE = "false";
	
	public static String CONFIG_SPRING = "applicationContent.xml";
	public static String CONFIG_MYBATIS = "applicationConfig.xml";
	public static String CONFIG_DS = "datasource.properties";
	public static String CONFIG_WEB = "web.xml";
	public static String CONFIG_MAPPER_SUF = "mapper";
	public static String CONFIG_SERVICE_SUF = "service";
	
	public static String DS_IP = "localhost";
	public static String DS_PORT = "3306";
	public static String DS_DATABASE = "test";
	public static String DS_USER = "root";
	public static String DS_PASSWORD = "";
	
	public static String FTL_SPRING = "spring.ftl";
	public static String FTL_DS = "datasource.ftl";
	public static String FTL_MYBATIS = "mybatis.ftl";
	public static String FTL_ENTITY = "entity.ftl";
	public static String FTL_DAO = "dao.ftl";
	public static String FTL_MAPPER = "mapper.ftl";
	public static String FTL_SERVICE = "service.ftl";
	public static String FTL_SERVICE_IMP = "serviceImp.ftl";
	public static String FTL_INJECTION = "injection.ftl";
	public static String FTL_WEB = "web.ftl";
}
